package com.atguigu.gmall.search.pojo;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
public class SpuAttributeValueVO {
    @Field(type = FieldType.Long)
    private Long id;  //商品和属性关联的数据表的主键id
    @Field(type = FieldType.Long)
    private Long productAttributeId; //当前sku对应的属性的attr_id
    @Field(type = FieldType.Keyword)
    private String name;//属性名  电池
    @Field(type = FieldType.Keyword)
    private String value;//3G   3000mah
    @Field(type = FieldType.Long)
    private Long spuId;//这个属性关系对应的spu的id
}
